class LoadingUI extends eui.Component implements RES.PromiseTaskReporter {
    public constructor() {
        super();
        this.skinName = 'resource/skins/Loading.exml';
    }
    private progress:eui.Rect;
    private progressBox:eui.Group;
    private loadingGroup:eui.Group;

    protected childrenCreated(){
        SK_GLOBAL.screenAuto(this);
        //创建播放MovieClip动画： 动画名,加载的容器,x,y,动画组名,播放次数-1为无限,资源名
        SK_GLOBAL.LoadMovieClipMovie('start',this.loadingGroup,10,40,'loading',-1,'loading')
	}
    public onProgress(current: number, total: number): void {
        let step = global.Math.floor(current/total*300);
        this.progress.width = step;
    }
}
